<?php
require 'functions.php';

session_start();

if (is_login()) {
?>
<meta charset="utf-8"/>

<input type="button" value="Call S1" onclick="dep('s1')" />
<input type="button" value="Call S2" onclick="dep('s2')" />
<a style="float:right;" href="login.php?logout=1">注销</a>
<script>
function dep(action) {
	document.getElementById('iframe').src='do.php?action='+action
}
</script>

<iframe id="iframe" style="margin-top:5px;height:90%;width:100%;border:1px solid #ccc;"></iframe>
<?php
}
?>

